package com.es.demo;

import java.lang.reflect.Field;

import com.es.hr.emp.EmpInfoBean;


public class TestEntity {   
   
 public static void main(String[] args) throws SecurityException, ClassNotFoundException, IllegalArgumentException, IllegalAccessException   
 {   
  Field[] fds = Class.forName   
  ("com.es.hr.emp.EmpInfoBean").getDeclaredFields();   
  EmpInfoBean bean = new EmpInfoBean();
 
  for(int i=0;i<fds.length;i++)   
  {   
	  String d= fds[i].getName();
	  fds[i].set(bean, "2");
   System.out.println(fds[i].get(bean));   
      
  }   
 }   
  
}   
